package com.cgg.stock.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cgg.stock.common.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    BigDecimal selectBalance(Long account);

    int updateBalance(@Param("account") Long account, @Param("accountBalance") BigDecimal accountBalance);

    User selectByAccount(@Param("userAccount") Long userAccount);
}
